/*
 * Copyright (c) 2011, Brookhaven National Laboratory
 * All rights reserved.
 * The software in this package is published under the terms
 * of the BSD license a copy of which has been included with
 * this distribution in the license.txt file.
 */

#ifndef _OXTYPES_DELEGATE_DYNAMIC_TYPE_H
#define _OXTYPES_DELEGATE_DYNAMIC_TYPE_H

#include <boost/scoped_ptr.hpp> 

#include <dds/xtypes/TypeObject.hpp>

#include <tdds/xtypes/Descriptor.hpp>
#include <tdds/xtypes/DynamicTypeMember.hpp>

#include "dds/type/dynamic/detail/Descriptor.h"
#include "dds/type/dynamic/detail/DynamicTypeMember.h"

namespace oxtypes { namespace delegate {

struct DynamicType {

  dds::type::dynamic::TypeDescriptor td; 

  // std::map<std::string, DynamicTypeMember>
  boost::scoped_ptr<dds::type::dynamic::DynamicTypeMembersByName> members;

  // std::map<dds::type::MemberId, DynamicTypeMember>
  boost::scoped_ptr<dds::type::dynamic::DynamicTypeMembersById> memberByIds; 

  // std::vector<AnnotationDescriptor>
  dds::type::dynamic::AnnotationDescriptorSeq* annotations;

};

}}

#endif
